﻿using MessagePack;

namespace Service.Model
{
    /// <summary>
    /// 配置项
    /// </summary>
    [MessagePackObject]
    public struct ConfigItem
    {
        /// <summary>
        /// 配置的显示名称
        /// </summary>
        [Key(0)]
        public string DisplayName { get; set; }
        /// <summary>
        /// 配置项的Key
        /// </summary>
        [Key(1)]
        public string Key { get; set; }
        /// <summary>
        /// 是否是需要加密保存的配置项
        /// 加密保存的配置项,会通过rsa加密
        /// </summary>
        [Key(2)]
        public bool IsSecret { get; set; }
    }
}
